# Contributor: David Florness <david@florness.com>
# Maintainer: David Florness <david@florness.com>
pkgname=py3-ifaddr
pkgver=0.1.7
pkgrel=2
pkgdesc="Enumerates all IP addresses on all network adapters of the system"
url="https://github.com/pydron/ifaddr"
arch="noarch"
license="MIT"
options="!check"
depends="python3"
makedepends="py3-setuptools"
source="https://github.com/pydron/ifaddr/archive/$pkgver/ifaddr-$pkgver.tar.gz"
builddir="$srcdir/ifaddr-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --root="$pkgdir" --prefix="/usr" --optimize=1
}

sha512sums="648d05c1aa91b81bfbda81c9753c3f35c7f451e9842eef9b46545db7817e4fdbe9b8f8f30f552cdef9522998960d7b07a4465dd49733fd784702f48aa875238d  ifaddr-0.1.7.tar.gz"
